package com.ruoyi.modules.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.SoilSiteInfoMapper;
import com.ruoyi.modules.domain.SoilSiteInfo;
import com.ruoyi.modules.service.ISoilSiteInfoService;

/**
 * 处置场所信息Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class SoilSiteInfoServiceImpl implements ISoilSiteInfoService 
{
    @Autowired
    private SoilSiteInfoMapper soilSiteInfoMapper;

    /**
     * 查询处置场所信息
     * 
     * @param id 处置场所信息主键
     * @return 处置场所信息
     */
    @Override
    public SoilSiteInfo selectSoilSiteInfoById(String id)
    {
        return soilSiteInfoMapper.selectSoilSiteInfoById(id);
    }

    /**
     * 查询处置场所信息列表
     * 
     * @param soilSiteInfo 处置场所信息
     * @return 处置场所信息
     */
    @Override
    public List<SoilSiteInfo> selectSoilSiteInfoList(SoilSiteInfo soilSiteInfo)
    {
        return soilSiteInfoMapper.selectSoilSiteInfoList(soilSiteInfo);
    }

    /**
     * 新增处置场所信息
     * 
     * @param soilSiteInfo 处置场所信息
     * @return 结果
     */
    @Override
    public int insertSoilSiteInfo(SoilSiteInfo soilSiteInfo)
    {
        soilSiteInfo.setCreateTime(DateUtils.getNowDate());
        return soilSiteInfoMapper.insertSoilSiteInfo(soilSiteInfo);
    }

    /**
     * 修改处置场所信息
     * 
     * @param soilSiteInfo 处置场所信息
     * @return 结果
     */
    @Override
    public int updateSoilSiteInfo(SoilSiteInfo soilSiteInfo)
    {
        soilSiteInfo.setUpdateTime(DateUtils.getNowDate());
        return soilSiteInfoMapper.updateSoilSiteInfo(soilSiteInfo);
    }

    /**
     * 批量删除处置场所信息
     * 
     * @param ids 需要删除的处置场所信息主键
     * @return 结果
     */
    @Override
    public int deleteSoilSiteInfoByIds(String[] ids)
    {
        return soilSiteInfoMapper.deleteSoilSiteInfoByIds(ids);
    }

    /**
     * 删除处置场所信息信息
     * 
     * @param id 处置场所信息主键
     * @return 结果
     */
    @Override
    public int deleteSoilSiteInfoById(String id)
    {
        return soilSiteInfoMapper.deleteSoilSiteInfoById(id);
    }
}
